package hottargui.config;

import hottargui.framework.AttackStrategy;
import hottargui.framework.Tile;

public class BetaAttackStrategy implements AttackStrategy {

	public int attack(Tile base, Tile target, int dieValue) {
		return Math.min(
				(int)Math.floor(((base.getType().getStrategicValue() + dieValue) / 2)), 
				target.getUnitCount()
		);
	}

}
